<div class="students form">
<?php echo $this->Form->create('Student');?>
	<fieldset>
 		<legend><?php __('Edit Student'); ?></legend>
	<?php
	pr($this->data);
		echo $this->Form->input('name', array('value' => $this->data['User']['name']));
		echo $this->Form->input('email', array('value' => $this->data['User']['email']));
		echo $this->Form->input('password');
	?>
	</fieldset>
	
	<?php 
		$act = empty($this->data['User'])?"save":"edit";
		echo $this->Form->input('action', array('type' => 'hidden', 'value' => $act));
	?>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Student.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Student.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Students', true), array('action' => 'index'));?></li>
	</ul>
</div>